package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author gmx
 * @since 2023-06-08
 */
@Data
@TableName("h2_shop_return_purchase")
@Schema(name = "ShopReturnPurchase", description = "")
public class ShopReturnPurchase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @Schema(description = "退货商铺id")
    private Long shopId;
    @Schema(description = "退货商品id")
    private Long goodsSkuId;
    @Schema(description = "退货sku_name")
    private String goodsSkuName;

    @Schema(description = "数量")
    private Integer num;

    @Schema(description = "单价")
    private BigDecimal price;

    @Schema(description = "应退金额")
    private BigDecimal totalPrice;

    @Schema(description = "支付类型，1、在线支付、0 货到付款")
    private Integer payType;

    @Schema(description = "0审核中1审核未通过2审核通过")
    private Integer status;

    @Schema(description = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "订单更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "审核通过时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;

    /**
     * 退货id
     */
    private Long returnId;

    /**
     * 采购id
     */
    private Long purchaseId;

    /**
     * 库存id
     */
    private Long stockId;

    private Long skuId;
}
